package com.mjh.partners.service.Impl;

import java.util.List;

import com.mjh.partners.mapper.BookMapper;
import com.mjh.partners.pojo.Book;
import com.mjh.partners.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class BookServiceImpl implements BookService {
  @Autowired
  private BookMapper bookMapper;
  @Override
  public List<Book> getBookByUid(int userid) {
    return this.bookMapper.getBookByUid(userid);
  }
  @Override
  public boolean addBook(Book book) {
    return this.bookMapper.addBook(book);
  }
  @Override
  public boolean deleteBook(int bid) {
    return this.bookMapper.deleteBook(bid);
  }

}
